#!/bin/bash

# 定义docker要启动的容器名称（注意声明数组等号左右不能有空格）
container_names=("mysql_1" "mysql_2" "mysql_3" "mysql_4" "mysql_5" "redis" "mongo" "nacos" "minio" "sentinel" "mq")

# 循环启动每一个容器
for containerName in "${container_names[@]}"
do
	echo "Starting $containerName"
	docker start $containerName
done

echo "All containers have been started"
